
sum = 0
for i in range(1,101):
    if i % 2 == 0:
        sum += i
print(sum)

# # 定义变量sum
# sum = 0
# # 使用for循环输出1-100
# for i in range(1, 101):
#     if i % 2 == 0:
#         sum += i
# print(sum)